package com.company.project.mapper;

import com.company.project.pojo.permission.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.project.pojo.permission.PermissionDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2019-08-10
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    /**根据role_id查询权限*/
    List<PermissionDTO> getPermissionListByRoleId(Integer roleId);
}
